package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Seckill_activityRouter struct{}

func (s *Seckill_activityRouter) InitSeckill_activityRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	seckill_activityRouter := Router.Group("seckill_activity").Use(middleware.OperationRecord())
	seckill_activityRouterWithoutRecord := Router.Group("seckill_activity")
	seckill_activityRouterWithoutAuth := PublicRouter.Group("seckill_activity")
	{
		seckill_activityRouter.POST("createSeckill_activity", seckill_activityApi.CreateSeckill_activity)
		seckill_activityRouter.DELETE("deleteSeckill_activity", seckill_activityApi.DeleteSeckill_activity)
		seckill_activityRouter.DELETE("deleteSeckill_activityByIds", seckill_activityApi.DeleteSeckill_activityByIds)
		seckill_activityRouter.PUT("updateSeckill_activity", seckill_activityApi.UpdateSeckill_activity)
	}
	{
		seckill_activityRouterWithoutRecord.GET("findSeckill_activity", seckill_activityApi.FindSeckill_activity)
		seckill_activityRouterWithoutRecord.GET("getSeckill_activityList", seckill_activityApi.GetSeckill_activityList)
	}
	{
		seckill_activityRouterWithoutAuth.GET("getSeckill_activityPublic", seckill_activityApi.GetSeckill_activityPublic)
	}
}
